package com.wssnail.elasticsearch.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Author: 熟透的蜗牛
 * @CreateTime: 2023-01-05 16:36
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@ConfigurationProperties(prefix = "wssnail.elasticsearch")
public class ElasticsearchProperties {

    //host
    private String hosts = "127.0.0.1:9200";
    // es用户名
    private String userName;
    // es密码
    private String password;
    // es 请求方式
    private String scheme = "http";
    // es 连接超时时间
    private int connectTimeOut = 1000;
    // es socket 连接超时时间
    private int socketTimeOut = 30000;
    // es 请求超时时间
    private int connectionRequestTimeOut = 500;
    // es 最大连接数
    private int maxConnectNum = 200;
    // es 每个路由的最大连接数
    private int maxConnectNumPerRoute = 200;

}
